package com.qianfeng.smsplatform.search.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * todo  这个类 是我们用来调取其他类的服务的
 */
@FeignClient(value = "CACHE-SERVICE",fallback =MyFeignImpl.class )
@Component
public interface MyFeign {

    @RequestMapping("/operainfo/{clientId}")
    Map<Object,Object> getClientById(@PathVariable("clientId") String clientId);


    @RequestMapping("/policyinfo/{phase}")
    String getPhase(@PathVariable("phase") String phase);

    @RequestMapping("/policyinfo/{router}")
    Map<Object,Object> getChannelRouter(@PathVariable("router") String router);

    @RequestMapping("/policyinfo/{phone}")
    String getBlackMenu(@PathVariable("phone") String phone);

    @RequestMapping("/policyinfo/{dirtywords}")
    String getDirtywords(@PathVariable("dirtywords") String dirtywords);




}
